package com.hb.trade.server.project.evaluation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hb.core.pojo.parent.PageResult;
import com.hb.core.pojo.project.evaluation.dto.EvaluationCommitteeBidDTO;
import com.hb.core.pojo.project.evaluation.entity.EvaluationCommitteeBid;

/**
 * <p>
 * 评委会标段信息 服务类
 * </p>
 *
 * @author zhaojk
 * @since 2021-08-30
 */
public interface EvaluationCommitteeBidService extends IService<EvaluationCommitteeBid> {

    /**
     * 根据标段Id查询组建的评委会数量（或者判断此标段是否组建了评委会）
     *
     * @param sectionId  标段Id
     * @author lixiang
     * @return
     */
    Integer countEvaluationCommitteeBidBySectionId(Long sectionId);


    /**
     *
     * @Description: 根据评委会id获取 评委会下的标段信息
     * @Author: zhongdl
     * @Date:2022/2/15 11:39
     * @param evaluationCommitteeBid:
     * @return: {@link PageResult< EvaluationCommitteeBidDTO> }
     **/
    PageResult<EvaluationCommitteeBidDTO> pageCommitteeBidBid(EvaluationCommitteeBidDTO evaluationCommitteeBid);
    /**
     *
     * @Description: 结束评标
     * @Author: zhongdl
     * @Date:2022/2/15 16:54
     * @param evaluationCommitteeId:评委会id
     * @param sectionId: 标段id
     * @return: {@link boolean }
     **/
    boolean endEvaluation(Long evaluationCommitteeId, Long sectionId);
    /**
     *
     * @Description:判断下评委会标段是否全部结束评标
     * @Author: zhongdl
     * @Date:2022/2/15 17:01
     * @param evaluationCommitteeId:评委会id
     * @return: {@link boolean }
     **/
    boolean endAllSectionEvaluationFlag(Long evaluationCommitteeId);

}
